import Cookies from "js-cookie";

const TokenKey = "Token";

export function getToken() {
  return Cookies.get(TokenKey);
}

export function setToken(token) {
  return Cookies.set(TokenKey, token);
}

export function removeToken() {
  return Cookies.remove(TokenKey);
}

export function getUserName() {
  return Cookies.get("UserName");
}

export function setUserName(UserName) {
  return Cookies.set("UserName", UserName);
}

export function removeUserName() {
  return Cookies.remove("UserName");
}

export function getLevel() {
  return Cookies.get("level");
}

export function setLevel(Level) {
  return Cookies.set("level", Level);
}

export function removeLevel() {
  return Cookies.remove("level");
}
